package com.itheima.mapper;

import com.itheima.pojo.Emp;
import com.itheima.pojo.ExprList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {

    List<Emp> findAllByPage(String name, Integer gender, String begin, String end);

    void saveEmp(Emp emp);

    Emp findEmpById(Integer id);

    void deleteByIds(List<Integer> ids);

    void updateEmpById(Emp emp);

    List<Emp> findAll();

    void saveExprList(@Param("list")List<ExprList> list);

    List<ExprList> findExprListByEmpId(Integer id);

    void deleteExprListByEmpId(Integer id);

    void deleteExprListByEmpIds(List<Integer> ids);
}
